package com.hdoit.ares.logical.share.dao.impl;

import javax.annotation.Resource;

import org.springframework.stereotype.Component;

import com.tennetcn.common.dao.base.impl.SuperDao;
import com.hdoit.ares.logical.share.dao.IConsultDao;
import com.hdoit.ares.logical.share.mapper.ConsultMapper;
import com.hdoit.ares.logical.share.model.Consult;
/**
 * @author      caochengmeng
 * @email       
 * @createtime  2018年03月25日 16:17:28
 * @comment
 */
@Component
public class ConsultDaoImpl extends SuperDao<Consult> implements IConsultDao{

	private ConsultMapper consultMapper;
	public ConsultMapper getConsultMapper() {
		return consultMapper;
	}
	@Resource
	public void setConsultMapper(ConsultMapper consultMapper) {
		this.consultMapper = consultMapper;
	}

	@Override
	public int queryCountDayShares(String customerId) {
		return consultMapper.queryCountDayShares(customerId);
	}

	@Override
	public int queryCountMonthShares(String month, String customerId) {
		return consultMapper.queryCountMonthShares(month, customerId);
	}

}